<!doctype html>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <%@ taglib prefix="perm" uri="http://wanhuakeji.com/permission" %>
    <%@ include file="/WEB-INF/views-jsp/include/taglib/taglib.jsp" %>
    <%@ include file="/WEB-INF/views-jsp/include/script/script.jsp" %>
    <%@ include file="/WEB-INF/views-jsp/include/link/link.jsp" %>
    <script type="text/javascript" src="${path}/html/js/js-jsp/layout-sub.js"></script>
    <script type="text/javascript" src="${path}/html/js/js-jsp/ba/role/role.js?v=<%out.print(Math.random());%>"></script>
    <script type="text/javascript" src="${path}/html/js/js-jsp/common/select-plugin.js?v=<%out.print(Math.random());%>"></script>
    <script>
        addBtn = <perm:hasPermission permission="rules:ba_role_add"/>;
        delBtn = <perm:hasPermission permission="rules:ba_role_del"/>;
        editBtn= <perm:hasPermission permission="rules:ba_role_edit"/>;
        searchBtn = <perm:hasPermission permission="rules:ba_role_find"/>;
        viewBtn = <perm:hasPermission permission="rules:ba_role_view"/>;
    </script>
</head>
<body style="height:100%; margin: 2px; ">
    <input type="hidden" id="isSysAdmin" value="${isSysAdmin}"/>
    <div class="easyui-layout"  fit="true" space="2">
        <div region="north"  style="height:100%;">
            <div class="easyui-layout" fit="true" space="2">
                <div region="north" class="searchToolBar" border="false" style="height: 120px">
                    <fieldset>
                        <legend>系统操作</legend>
                            <form id="roleQueryForm" name="roleQueryForm" method="post">
                                <table class="searchTable">
                                    <tr class="searchTableTr">
                                        <td>
                                            <input type="hidden" name="id" id="id_" value="" />
                                            <input class="easyui-textbox" type="text" label="角色名称：" labelWidth="82" labelposition="left" data-options="prompt:'请输入角色名称'" name="name_" id="name_"  style="width:90%; height: 32px">
                                        </td>
                                        <td>
                                            <select class="select-commonDict" label="数据权限：" labelWidth="82" labelposition="left" data-modelCode="BA" data-funCode="dataScope" defualt-show="--请选择--" name="dataScope_" id="dataScope_"
                                                    style="width:90%; height: 32px" editable="false">
                                            </select>
                                        </td>
                                        <td>
                                            <select class="easyui-combobox" label="系统数据：" labelWidth="82" labelposition="left" name="isSys_" id="isSys_" style="width:90%; height: 32px" editable="false">
                                                <option value="" selected="selected">--请选择--</option>
                                                <option value="1">是(只有超管能修改)</option>
                                                <option value="2">否(只要有角色修改权限的人员就能修改)</option>
                                            </select>
                                        </td>
                                        <td>
                                            <select class="easyui-combobox" label="是否可用：" labelWidth="82" labelposition="left" name="useable_" id="useable_" style="width:90%; height: 32px" editable="false">
                                                <option value="" selected="selected">--请选择--</option>
                                                <option value="1">启用</option>
                                                <option value="2">禁用</option>
                                            </select>
                                        </td>
                                    </tr>
                                </table>
                                    <table class="searchTable" style="margin-top: 0px">
                                        <tr class="searchTableTr">
                                            <td></td>
                                            <td></td>
                                            <td colspan="2" style="width: 50%;">
                                                <div class="searchButton">
                                                    <!--角色操作菜单-->
                                                    <div id="role_menu"></div>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                            </form>
                    </fieldset>
                </div>
                <div region="center" border="false" style="padding: 0px;">
                    <!--角色表格列表-->
                    <table id="role_dataList"></table>
                </div>
            </div>
        </div>
    </div>
    <script type="text/javascript" src="${path}/html/js/js-jsp/common-optionBtnArray.js"></script>
</body>
</html>
